package com.example.gateway.controller;
import com.example.common.cache.CacheApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.reactive.socket.server.upgrade.ReactorNettyRequestUpgradeStrategy;
import reactor.netty.ConnectionObserver;

import javax.annotation.PostConstruct;

@RestController
public class MessageController {

    @Autowired
    private CacheApi cacheApi;


    @GetMapping("/test")
    public void testRedisSubPub(){

        cacheApi.sendMessage("","1234");


    }

}
